package drtySyntaxEditor.settings;

import java.util.HashSet;
import java.util.Properties;
import java.util.Set;

public class DrtySettings extends Properties {
	private static DrtySettings instance = null;
	
	public static DrtySettings getInstance() {
		if (DrtySettings.instance == null) {
			DrtySettings.instance = new DrtySettings();
		}
		return DrtySettings.instance;
	}
	
	private DrtySettings() {
		this.applyDefaults();
	}
	
	public void applyDefaults() {
		this.put("Key.shift TAB", "ActionUnindent");
		this.put("Key.TAB", "ActionIndent");
	}
	
	// TODO return all the keys with the specified prefix.
	public Object[] getSettingGroup(String prefix) {
		HashSet<Object> keys = (HashSet<Object>) this.keySet();
		//Object [] ret = new Object[];
		for (Object key : keys) {
			
		}
		return null;
	}
}
